USE[DeltaFlex]
GO
IF(OBJECT_ID('dbo.sp_CercarNextIdAlbara')IS NOT NULL)
	DROP PROCEDURE dbo.sp_CercarNextIdAlbara
GO

CREATE PROCEDURE sp_CercarNextIdAlbara
AS
BEGIN
	SET NOCOUNT ON
	SELECT NEXT VALUE FOR SEQ_ALBARA as IDALBARA;
	END 
GO